removed deprecated code in demo