fixed semaphore output data structure.