update some if statements