added logic to SyncedMap