updates with a print function