fix repeated compiler warnings