add chekckout in getting cos-sample