prepare for cart