analyzing the external and internal environment