final_proj.pl clean up conditionals