unused newData variable removed