update, making plots for different groups