reverse children in both cases