Removing an unecessary code line