internal layout rendering and var processing