updated with figs referenced and explanation of which()