switch from Graph to Model