fixed syntax error , forgot to close the function