some rules and layout changes