add sanitize function