wrote test_cond, completed step()