making threads runnable