ah sorry, I missread it. But why parsing the input twice ?