adding core data for patent