works but changes the list