befor sync