add @static
factor out duplicate bracket code into RPALBrackets