line 99, changed unsigned i to int i