fixed filter and compare name function pointer to return a const(char*) and not be a const function pointer: