comaring size_t and int using xsize_t
remove xsize_t warnings