modified for topsy