changed to work with a single file instead of a full directory of files