added a check to getFleet function