u r right, making reset() atomic
thanks1