source code of bddem