changed getActivity to getThreadPool for correct Thread usage