added template declaration in <<