optimized copyWords