use ranges from camera