shortened next 2 IF statements