working on being able to remove the last node and the maximum node