changed %d to %u