fixed the warnings