calculating faces