fixing E_STRICT error (Only variables should be passed by reference)