buiding skeleton of functions