added some filter functions