change the eject function