filtering function is now not cap sensitive