changed _loc to _ptr as its a more descrioptive name