created a function out of change context and started workign on the hard to select small country problem