solve by substitution by MBarnhart