Wrote inRange for copy