improvement extends getItemTextPath method