delete unneccesary code