cleaned up the graph applied a filter