filter bug... im going to need to improve this a lot later