handling compiler warnings