avoid sign conversion compiler warnings