last stuff before layout