fixed Warning - Only variables should be assigned by reference