removed ending blank lines