eliminating lots of warnings