got this idea for how to optimize my solve further at 2 am and could not sleep before i put it together.