fixing some missing pointers