calculate faces