after definition of the functions