refactored dpb and lksm training for good concurrency