updated validation of filters
removed print_r array