fix for inclusive ranges