search variables to constants

no functional change, easier to modify