change newData to options