fixed tweet collection and added some functions