give some example in controller