update sanitize method