change constants to variables