copy and cmp without encoding