enable to change the brush setting out of the function