modified 530shell.c