fixed compiler errors