removed trailing whitespace, fixed indentation