fix to eliminate the compile warnings