funciton for sync
,b and remapms