improve speed ~2seconds (for contents of ./sample/) by removing the gsub