rewrote to use test_text