modify so that the cat command can work