reg demo
test working
new funcs