add some function prototype inside controller and model function implementation