change while $next to loop ... last