delete unnecessary code from class