change collates flag
remove end of line