removed trailing white space
fixed warnings