first refactor of intervention model, next is to pull out duration model