codes written in hdu