fixing the pointer