prototyping the controller