templates simplification