synchronization problem with attend