optimizations, graph changes