delete unnecessary method and controller