moved condition in targets file