funcion of the program