fixed compiler errors that I introduced