changed folder from scripts to functions