conversion to gem