version with plot