1. modify the sync of mapping function