complete looping to make and replace tasks. add popup menu for replacement parameters