changed %lu to %zu in printf