fixed newline at eof (i should really remember this)