leaf model and controller