range finally works