working separate graph