split loops that take too long to execute.