failing at nested templates