Change keyword "data" to "type" to avoid confusion