simplifed demo to 3 lines