added null constraint