compiler warnnings fixed