trying to build a controller