Gem layer

modify gem layer.
be careful when merged.