update the function file agian