wrong range was used