correct compiler warnings