each function is in  to my mind