converting to gem