added file instruction funsction