added controller for interval