updated Y.rawbrl to using median instead of ML brl