added illigal_input for null pointer error
last fix