completed and optimized templates