function calls inside of functions