don't set previous value in loop if raw