trying to make semaphore work