missed a private modifier on the sync() method