fix line ending
rename constructor