the function is used in the other script