fixing .model() reference to be .data()