change withFilter to filter (writeData consistent)