replace NaN with 0; bounds for radians in hsl hint