tray_list function now returns a list