fixed several warning messages.