finish demo codes