more debugging of median calcs.