add commented-out check_range
fix dangling link problem