fixed some errors that occured during compilation