merged functionality btw controller and model