limit scope of helper functions with static, further development of controller