edited the functions file