fixed white space bug that messed up output