simplified the processing of expressions within brackets