removed hsize_t casts