removed global pointers used for debugging