working with pattern substitution instead of manually writing a list of object filenames