Changed BD ang fixed some errors