fixed method name for set_register