fix for loop

divide sizeof / sizeof(int)
cleanup