updated school mgp with nulls in minmax