removed printing of all xyz, keeping return of final position