fixing extra line and indentations