correct cell center computation