deleting path nodes working