resolve compiler warnings