map queries working