final_proj.pl setup allowed sub to only return result