handle pattern copy