corrected ibd & page output