addition to controller functions