new_states() r1 bugs fixed, but not doing anything useful