first functionning plot