cart funct 1.0