remove some unnecessary warnings