debugged compilation errors.