added semaphore waiting