int i variable in aux() changed to 1