update for ptr