added control and plot rates