added centers to edge averaging, need to add tests