updating namespace to tensor