nil value issue got resolved