working on synchronization