removed some causes of compiler warnings