annotated code to dynamically add to an existing list