query prams detect