tighten code