small update to Term.all_positions