make last example more generic