added functionality to printPathToPrax method