moved filter to seperate file