avoid several compiler warnings