tidy up layout.
fix missing scope var introduced earlier today