now filters graphs according to statement, #49