fixed ugly and inconsistent use of tabs vs spaces