moving functions to assessment controller