be able to set regime length dynamically