making quuery string work