added bid queries