fixed trailing spaces and converted from tabs to spaces