bug fixed - value or reference transfer