ensure pruned range is consectuive
set emass to nan when invalid