gets instruction locations from the polygon index