compiler warnings fixed