sending values via pointer