additions to controller