changed mean/sd to median/mad