Fixed the bug of pk
Added delete