adding reset loc1 loc2 funtionality