changes the return value from variable circumference to totalCircumference