Fix syntax errors
Update method name
Remove non-null constraint