rest of sorting & some styling