updates and output