fixing the warnings