reset pass function added