finalize plots