removes a gem and fixed comparison conditions