fixed issue with trailing whitespace