fixed the errors to get code to compile.