can be improved by 1-2 seconds, but reseting 300 times just to get the best pattern is like... really boring