putting data in nsvm template