update output method