added wls code