fixed demo script