the main programm of training cdbm