spelling mistake $i instead of %i