removing unecessary gems