added some unfinished code for deleting node