update functions file