clearer code for parsing loop, I hope