implemented fifo command P