added if statements that modfiy two varibles single line. This was a little bit tricker then I anticipated.