converted the 'subject' to factor