fixed some of michas compiler warnings