use reference to change list element