changing conditionals to use double brackets for proj commands