add 2 new functions for COntroller