condense from and to