smarter word layout