added sanitize method