followed a tutorial on nsfetchedresults controller