updated beauty (now includes sorting)