before plot object changes