implemented distinct tweet function, fixes