changed sync to checkout