prob 14 removing incorrect global