modified filestaff for assign5