Replace constant with var