delete unnecessary `end`