fix deprecated data argument