convert tabs to spaces and remove unnecessary line