function to jump to configuration given iteration