correction to plots script