added bid-checking function