initial version of twitter mining code