added face size filtering and fixed  chaining