started refactor of logic to streamline  loops  now that there's more than  3 attrs to parse.
not done yet.