fixed indentations and trailing whitespaces