adding snippet for synchronisation