thanks for looking into it, in the end I changed the code to iterate over collection and manually compare each code, and it still didn't work! Turns out that there was a slight difference in the names which for reason I didn't notice so the original filter was working correctly after all!
Thanks!