implemented updatePool() method, test added