synchronization and array copying