removed imperfect space insertion code