subshell now working

TODO: fix syntax error