modify filter to support frames