fixed main warnings