Working on domain max and min