refactored searching twitter