now prints number of attempts