adding demo parameter to register
testing complete register