debugged code: corrected closing parenthesis

code error from ide: statement expected, it showed line 18 as the error
and quickly corrected the extra parenthesis.