remove some compiler warnings