made changes because of compiler warnings