update output sample