controlling servos with potentiometer

thanks for reply.
yes eight meters between pot and servo.arduino mega is close to the servo.
yes i was powering directly from the arduino 5v pin