fixed defaultTo so that it uses clone and copy