added planning region calculations