reference range utility function from util module