return appropriate value from filter apply