generate subject from subject