modified lar-demo