synchronize code