fixed subprocess cal