change dir, remove unused variable , add value to countryCode within