put the function in a separate folder "tools"