added a new method in cntrl