implementation of 'circumference'