Changed template type from T to vecTYPE