added logic to the cbo