HWP: convert to intervals