clear unneccesary code