remove subshells