added median absolute deviation