added a print change function