Modified all, using pointers