added plot sync
added LengthError Exception