build list optionally