Ronald's commit: register function

not working yet