modify items inplace in list