solutions for hdu