corrected syntax
style and syntax fixes