added params on queries