controller and gem