compiler errors fixed