initialize bestSize to max size and fixed some style