started writing template file