fixed bug with assigning subshell results