update output for function3
update ui