index a pointer