working without controller