add helper for controller