added templates code style