refactor mathUtils
used function scheduler for twitter search