updated constructor to accomodate custom lags