final_proj.pl move sub to boolean