reading trajectory file