add case for null range