fixed semicolon in function