handle case where H=0 more gracefully