working using plotValues table