added conv function
replace strings with constants.