adding changes in file processing to incorporate sagital distance