preparing to average corners