neater codeeeoeoeoeeoe and some even more valinala restart point