Preserve current element in for-loop