Note on PI and Szeged indices