need to check node delete function