changing query to https