add partition func and deletion method on nodes