eliminating compiler warnings