constness of global and local