rewrote gem
Rewrite of gem