some variables are changed to constants