corrected various syntax mistakes