new assignment
fixed EOF bug