moved condense step to be sure it won't mess up things with names array...