add pointer sample