cleaned up gems to a hash