added black and white lists
added filter function