changed demo-function