changed logfile to print izes at the beging