changing type of filtered field to const reference type