clean up gems