start to implement cart loop