working init
remove trailing whitespace