sovled nil problem