Title: The dynamics of residential treatment a social system analysis