replace tail with cat