added functionality to brw