fix all the warnings