modified demo