updates if statements etc