new LSS algorithm