save filter to coredata