modify the cat code