fixed some errors i noticed