correction for subprocess