Deleting unecessary code