functional change, overwrites file found with target instead of writing new file