modifying tmplate