changed assignmentfile to int