search and plot works