fixed addPin query