finally fixed random filter