stuff for controller