threads are added but not working