remove unnecessary edge piece calculation