removed unused semaphore