Arduino uno giving weird analogWrite output

Grumpy_Mike:

red = analogRead(A0) >> 2;

this works now thanks