return int from show_reg