formatting tem[plates etc