replacing "int" with "size_t" in certain places.
replacing "int" with "size_t" in certain places.
replacing "int" with "size_t" in certain places.
really stupid bug fixed