model on graphs, moved scope data to data