extracting topics and user types