update lastindex counter on success