last consumed function