restores demo code