some compiler warnings fixed