change variable name and use state as constant