Deleting unnecesary code