working out second conditional statement