check for mutating a const variable