generating tmpSubject vector is working