add comments for range comparision