started fixing incorrect pointers