fixing missing parenthesis on function call