update output for function3