tidied up printing -- now only prints iterations