fixed bug with passing by value