Removing unecessary ids.