updated builder functions in several examples to promote consistency