smart cart (have some error)