corrected demo