implement sanitize function