fixing up trailing spaces and undef vars