changed some shell code