simplify planning logic, improve output readability