bug fix and print messages