sample synchronisation functions