fixed some errors that went with last commit