modify the cat problem