add single quota check function