user queries now work