trying to switch to passing a sorted object to show