(b) fixed compile errors