check addition of xsize and ysize