updated Query