#94 moved variable initialization from function parameter to place where variable is declared