apply BDT a on mass b