parses hw w/ doubling back