made if statements less confusing