removes extra gems