cleaning up gems