improve trailing whitespace thing