added sheet/flat mode