clean up references to labeled arrays