extended plotting added