changed complex get to just filter statements at the end of the function