fixing bug, p5 should not get deleted