some errors that had to be fixed