corrected errors in sync