need to finish writing expected_out