change from call by const reference to call by value for build in variable types