replace template with real values