fixed syntax and trailing whitespace