filtering now working, still renders too many times