added a substitute command to allow for the same code block to be reused with slight changes.