found null pointer problem