removed unnecessary parts and fixed the return of bch_expansion