work done for pass by reference vs value