edited gem source