modify the cbbb collectdata function