added vectorized version of SLmodel