added final position output