only one error
tested and commented version of shell