changed how we determine length