updated last_enginner function