corrections to delete() method, still need fix for delete root