replaced template with new one