updating number of attempts