added km filtering