fixing some compiler warnings