added a functions script