further clarifications on the interactions between the functions in the script