cleanup whitespace errors