clean unecessary code