got rid of some warning messages