fixing a conditional