main functions of app complete