demo program updated