removed unneeded filtering function