before creation of cart