do type mapping before filtering