tray detection just about done committing what has been done so far