some query updates