moved looping mechanism to single function; added place-holder instrument loops