update function files structure