convert to gems