fixed a few warnings as per design compiler complains.