improved model, added tail