Modifying variables that were passed into a function is not good practice -- it would be better to have this assignment take place in the code that calls the function instead (since you are returning `target` anyway).