moved increment attempts count to model