removes syntax mistakes