removed null
better error message