semaphore adde and commented