prevent warnings

'Only variables should be passed by reference'