small modification for synchronous fifo