fixed week separation bug and used reverse ls