get rid of some pointers