added getShipType function