solve warning issues