folded private method into action handler block