works for sync