list comprehension cannot be used in stepwise update