fix syntax errors due bad programming habits from other languages