crete methods for cobtroler code