tighten up main write