fixed some pointers