implement unlinkP