addition of wait/signal