add makeFile method