removed min from elmquery