change xsize,ysize to private variables