updated with candy machine