correct return value
remove whitespace at EOL