cleaned up insertion of ships