[bad] in middle of testing size_t, do not use this
comaring size_t and int using xsize_t