remove fromFile method