new function in demo