fixed sync issue. commented out first two lines until can be investigated.