make show_reg static