fixed bug in which foci where read in incorrectly