fixed some  pointers and semicolons