for user reg
remove unused code