missing semicollon after function declaration