add fuction two read both file types + coord