Firms' responses to shocks and the impacts on employment and investment