cast to avoid size_t vs int issue