updated tray constructor again