refactored usage of isWide for registers