solving measure problem