removes stray space and unnecessary step