fixing up gems