to make the semaphore for ok