add void in pointer sample