fix warnings ralated to const