tighten #93 solution slightly