clean up of gems