confused and bad multithreading (does not work)