refactor parsed
wrong code to make the test pass