split iterations

added second pendulum support