working on pdcch gen functions