save an operation within loop