solved null problem